package com.j.lemon.learn.jvm;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author lijunjun
 * @Date 2019-12-19 15:19
 * @Description
 */
public class HeapOOM {
    static class OOMObject{

    }
    public static void main(String[] args) {
        List<OOMObject> list = new ArrayList<>();
        while(true){
            list.add(new OOMObject());
        }
    }
}
